package com.sdb.prescription.domain;

import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.sdb.common.annotation.Excel;
import com.sdb.common.core.domain.BaseEntity;

import java.util.Date;

/**
 * 处方对象 td_prescription
 * 
 * @author yyh
 * @date 2025-02-06
 */
public class TdPrescription extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 处方id */
    private Long id;

    /** 就诊号 */
    @Excel(name = "就诊号")
    private String clinicId;

    /** 患者id */
    @Excel(name = "患者id")
    private String patientId;

    /** 患者姓名 */
    @Excel(name = "患者姓名")
    private String patientName;

    /** 药品编码 */
    @Excel(name = "药品编码")
    private String code;

    /** 药品名称 */
    @Excel(name = "药品名称")
    private String name;

    /** 药品价格 */
    @Excel(name = "药品价格")
    private Double price;

    /** 药品数量 */
    @Excel(name = "药品数量")
    private String count;

    /** 药品总价 */
    @Excel(name = "药品总价")
    private Double totalprice;

    /** 使用方法 */
    @Excel(name = "使用方法")
    private String useage;

    /** 备注 */
    @Excel(name = "备注")
    private String beizhu;

    /** 创建时间 */
    @Excel(name = "创建时间")
    private Date createtime;

    /** 是否支付 */
    @Excel(name = "是否支付")
    private char ispay;

    /** 是否发药 */
    @Excel(name = "是否发药")
    private char ispayed;

    public void setId(Long id) 
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }
    public void setClinicId(String clinicId) 
    {
        this.clinicId = clinicId;
    }

    public String getClinicId() 
    {
        return clinicId;
    }
    public void setPatientId(String patientId) 
    {
        this.patientId = patientId;
    }

    public String getPatientId() 
    {
        return patientId;
    }
    public void setPatientName(String patientName) 
    {
        this.patientName = patientName;
    }

    public String getPatientName() 
    {
        return patientName;
    }
    public void setCode(String code) 
    {
        this.code = code;
    }

    public String getCode() 
    {
        return code;
    }
    public void setName(String name) 
    {
        this.name = name;
    }

    public String getName() 
    {
        return name;
    }
    public void setPrice(Double price)
    {
        this.price = price;
    }

    public Double getPrice()
    {
        return price;
    }
    public void setCount(String count) 
    {
        this.count = count;
    }

    public String getCount() 
    {
        return count;
    }

    public Double getTotalprice() {
        return totalprice;
    }

    public void setTotalprice(Double totalprice) {
        this.totalprice = totalprice;
    }

    public String getUseage() {
        return useage;
    }

    public void setUseage(String useage) {
        this.useage = useage;
    }

    public void setBeizhu(String beizhu)
    {
        this.beizhu = beizhu;
    }

    public String getBeizhu() 
    {
        return beizhu;
    }

    public Date getCreatetime() {
        return createtime;
    }

    public void setCreatetime(Date createtime) {
        this.createtime = createtime;
    }

    public char getIspay() {
        return ispay;
    }

    public void setIspay(char ispay) {
        this.ispay = ispay;
    }

    public char getIspayed() {
        return ispayed;
    }

    public void setIspayed(char ispayed) {
        this.ispayed = ispayed;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("clinicId", getClinicId())
            .append("patientId", getPatientId())
            .append("patientName", getPatientName())
            .append("code", getCode())
            .append("name", getName())
            .append("price", getPrice())
            .append("count", getCount())
                .append("useage", getUseage())
                .append("totalprice", getTotalprice())
            .append("beizhu", getBeizhu())
            .append("createtime", getCreatetime())
                .append("ispay", getIspay())
                .append("ispayed", getIspayed())
            .toString();
    }
}
